module.exports = function ($stateProvider) {
    $stateProvider
        .state({
            name: 'sameAsDe',
            url: '',
            template: require('../views/login.html'),
            controller: 'loginController'
        })
        .state({
            name: 'default',
            url: '/',
            template: require('../views/login.html'),
            controller: 'loginController'
        })
        .state({
            name: 'regist',
            url:'/regist',
            template: require('../views/regist.html'),
            controller:'registController'
        })
        .state('m', {
            url: '/m',
            template: require('../components/navbar/navbar.html')
        })
        .state('m.home', {
            url: '/home',
            template: require('../views/home.html'),
            controller: 'homeController'
        })
        .state({
            name: 'error',
            url: '/error',
            template: require('../views/error.html'),
            controller: 'banController'
        })
        .state({
            name: 'noPass',
            url: '/noPass',
            template: require('../views/noPass.html'),
            controller: 'noPassCtrl'
        });
};